﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Lidgren.Network;

namespace Network.Messages.LiveControl
{
    public class RequestClearRectMessage : NovaMessage
    {
        public RequestClearRectMessage()
            : base((ushort) CustomMessageType.RequestClearRectMessage)
        {
        }

        public int PtrNeedClear;

        public override void WritePayload(NetOutgoingMessage message)
        {
            base.WritePayload(message);
            message.Write(PtrNeedClear);
        }

        public override void ReadPayload(NetIncomingMessage message)
        {
            base.ReadPayload(message);
            PtrNeedClear = message.ReadInt32();
        }
    }
}
